package Thread;

import java.util.*;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.CopyOnWriteArrayList;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: LianBao
 * Date: 2024-08-11
 * Time: 20:03
 */
public class demo41 {
    public static void main1(String[] args) {
        List<Integer> list = Collections.synchronizedList(new ArrayList<>());
        List<Integer> list1 = Collections.synchronizedList(new LinkedList<>());
        CopyOnWriteArrayList<Integer> copy = new CopyOnWriteArrayList<>();
        BlockingQueue<Integer> queue = new ArrayBlockingQueue<Integer>(4);//队列的容量
    }

    public static void main(String[] args) {
        ConcurrentHashMap<String,String> map = new ConcurrentHashMap<>();
    }
}
